﻿using MengLin.OOP.DesignPattern.Flyweight.Letter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.FlyWeightPattern.Word
{
    public class OtherClass
    {
        public static void Show()
        {
            BaseWord m = FlyweightLetterFactory.CreateWord(WordType.M);
            BaseWord e = FlyweightLetterFactory.CreateWord(WordType.E);
            BaseWord n1 = FlyweightLetterFactory.CreateWord(WordType.N);
            BaseWord g = FlyweightLetterFactory.CreateWord(WordType.G);
            BaseWord l = FlyweightLetterFactory.CreateWord(WordType.L);
            BaseWord i = FlyweightLetterFactory.CreateWord(WordType.I);
            BaseWord n2 = FlyweightLetterFactory.CreateWord(WordType.N);
            Console.WriteLine("{0}{1}{2}{3}{4}{5}{6}", m.Get(), e.Get(), n1.Get(), g.Get(), l.Get(), i.Get(), n2.Get());
        }
    }
}
